<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-userMoneyDetail-edit" th:object="${userMoneyDetail}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
	            <div class="form-group">	
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">收获的金额/扣除的金额：</label>
                <div class="col-sm-8">
                    <input id="money" name="money" th:field="*{money}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">剩余金额：</label>
                <div class="col-sm-8">
                    <input id="afterMoney" name="afterMoney" th:field="*{afterMoney}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">类型，0收获金额，1扣除金额：</label>
                <div class="col-sm-8">
                    <input id="type" name="type" th:field="*{type}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">描述：</label>
                <div class="col-sm-8">
                    <input id="description" name="description" th:field="*{description}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">目标id：</label>
                <div class="col-sm-8">
                    <input id="objectId" name="objectId" th:field="*{objectId}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">目标类型：</label>
                <div class="col-sm-8">
                    <input id="objectType" name="objectType" th:field="*{objectType}" class="form-control" type="text">
                </div>
            </div>
							</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/userMoneyDetail"
		$("#form-userMoneyDetail-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-userMoneyDetail-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
